package com.likersai.opon.util;

import lombok.extern.slf4j.Slf4j;

/**
 * 概率事件工具类
 *
 * @author MSI PC
 * @since 2024-02-27 17:10
 */
@Slf4j
public class ProbabilityUtils {
    public boolean isEventOccur (int baseEventCount,int hitEventCount) {
        int randomValue = RandomUtils.getRandomNumberInRange(0,baseEventCount);
        return randomValue < hitEventCount;
    }

}